const { merge } = require('webpack-merge');
const baseConfig = require('./webpack.common.js')
const webpack = require('webpack')

// webpack的配置文件遵循着CommonJS规范
module.exports = merge(baseConfig, {
  mode: 'production',
  plugins: [
    new webpack.DefinePlugin({
      IS_DEV: 'false',
      BASE_URL: '"./public/"'
    })
  ]
})